import request from '@/utils/request'

// 查询列表
export function listApi(query) {
  return request({
    url: '/system/api/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getApi(id) {
  return request({
    url: '/system/api/list/' + id,
    method: 'get'
  })
}

// 新增
export function addApi(data) {
  return request({
    url: '/system/api/add',
    method: 'post',
    data: data
  })
}

// 修改
export function updateApi(data) {
  return request({
    url: '/system/api/edit',
    method: 'post',
    data: data
  })
}

// 删除
export function delApi(id) {
  return request({
    url: '/system/api/remove/' + id,
    method: 'get'
  })
}

// 查询游戏信息
export function pullage(data) {
  return request({
    url: '/system/api/pullage',
    method: 'get',
    params: data
  })
}


// toke生成验证
export function provingTokce(data) {
  return request({
    url: '/system/api/provingtokce',
    method: 'get',
    params: data
  })
}

// 查询游戏信息
export function pushAdd(data) {
  return request({
    url: '/system/api/pushAdd/' + data,
    method: 'get',
  })
}

// 查询游戏信息
export function pushDele
(data) {
  return request({
    url: '/system/api/pushDele/' + data,
    method: 'get',
  })


}

//一键上架
export function upGrounding(data) {
  return request({
    url: '/system/api/getGrounding/'+data,
    method: 'GET'
  })
}


//一键下架
export function downGrounding(data) {
  return request({
    url: '/system/api/getUndercarriage/'+data,
    method: 'GET'
  })
}

//一键下架
export function getSupplier(data) {
  return request({
    url: '/business/stock/getSupplier',
    method: 'get',
    data
  })
}



//推送游戏配置
export function pushConfig(data) {
  return request({
    url: '/system/api/pushconfig',
    method: 'post',
    data
  })
}


